/**
 * Copyright 2010 Creative Works, Inc.
 * Creative Works licenses this file to you under the Apache License, version
 * 2.0 (the "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *    http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.  See the License for the specific language governing
 * permissions and limitations under the License.
 */
package org.sendvox.freswitch.event;

import org.sendvox.freswitch.event.impl.BaseMessage;

public class HeartbeatMessage extends BaseMessage {

	private static final long serialVersionUID = 7235101510246589229L;

	private static final Event EVENT_NAME = Event.HEARTBEAT;

	private String eventInfo;
	private String upTime;
	private Integer sessionCount;
	private Integer sessionPerSec;
	private Integer sessionSinceStartup;
	private double idleCPU;

	@Override
	public Object getThis() {
		return this;
	}

	@Override
	public Event getEventName() {
		return EVENT_NAME;
	}

	/**
	 * @return the eventInfo
	 */
	public String getEventInfo() {
		return eventInfo;
	}

	/**
	 * @param eventInfo
	 *            the eventInfo to set
	 */
	public void setEventInfo(String eventInfo) {
		this.eventInfo = eventInfo;
	}

	/**
	 * @return the upTime
	 */
	public String getUpTime() {
		return upTime;
	}

	/**
	 * @param upTime
	 *            the upTime to set
	 */
	public void setUpTime(String upTime) {
		this.upTime = upTime;
	}

	/**
	 * @return the sessionCount
	 */
	public Integer getSessionCount() {
		return sessionCount;
	}

	/**
	 * @param sessionCount
	 *            the sessionCount to set
	 */
	public void setSessionCount(Integer sessionCount) {
		this.sessionCount = sessionCount;
	}

	/**
	 * @return the sessionPerSec
	 */
	public Integer getSessionPerSec() {
		return sessionPerSec;
	}

	/**
	 * @param sessionPerSec
	 *            the sessionPerSec to set
	 */
	public void setSessionPerSec(Integer sessionPerSec) {
		this.sessionPerSec = sessionPerSec;
	}

	/**
	 * @return the sessionSinceStartup
	 */
	public Integer getSessionSinceStartup() {
		return sessionSinceStartup;
	}

	/**
	 * @param sessionSinceStartup
	 *            the sessionSinceStartup to set
	 */
	public void setSessionSinceStartup(Integer sessionSinceStartup) {
		this.sessionSinceStartup = sessionSinceStartup;
	}

	/**
	 * @return the idleCPU
	 */
	public double getIdleCPU() {
		return idleCPU;
	}

	/**
	 * @param idleCPU
	 *            the idleCPU to set
	 */
	public void setIdleCPU(double idleCPU) {
		this.idleCPU = idleCPU;
	}

}